]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
build: Use multi-line string for embedded code
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 28 Jun 2022 16:59:05 +0000 (18:59 +0200)
committerMarge Bot <marge-bot@gnome.org>
Mon, 11 Jul 2022 14:21:58 +0000 (14:21 +0000)
Newer meson versions complain about newline characters in regular
strings, so switch to a proper multi-line string.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2350>

meson.build

index 354fbd6d8756574f25076e3ea7a8918ed5ba974a..bc0f62176f712cf83b378c724fc86bc72cd3f31b 100644 (file)
@@ -157,9 +157,11 @@ cdata.set('HAVE_FDWALK',
 )
 
 polkit_has_autocleanup = cc.compiles(
-  '#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE
+'''
+  #define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE
   #include <polkitagent/polkitagent.h>
-  void main(void) { g_autoptr(PolkitAgentListener) agent = NULL; }',
+  void main(void) { g_autoptr(PolkitAgentListener) agent = NULL; }
+''',
   dependencies: polkit_dep)
 cdata.set('HAVE_POLKIT_AUTOCLEANUP', polkit_has_autocleanup)